<?php
/* @var $this PageMasterController */
/* @var $model PageMaster */
/* @var $form CActiveForm */
?>

<div class="form ml34">

<?php $form=$this->beginWidget('CActiveForm', array(
	'id'=>'page-master-form',
	'enableAjaxValidation'=>false,
)); ?>

	<div class="row">Fields with <span class="required">*</span> are required.</div>
	<div class="row"><?php echo $form->errorSummary($model); ?></div>

	<div class="row">
		<?php echo $form->labelEx($model,'page_name'); ?>
		<?php echo $form->textField($model,'page_name',array('size'=>60,'maxlength'=>200)); ?>
		<?php echo $form->error($model,'page_name'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'template'); ?>
		<?php echo $form->dropDownList($model,'template',ApplicationConfig::app()->params['scaling_params']['page_template'],array('empty'=>'Select Template')); ?>
		<?php echo $form->error($model,'template'); ?>
	</div>
	
	<div class="row">
		<?php echo $form->labelEx($model,'url'); ?>
		<?php echo $form->textField($model,'url',array('size'=>60,'maxlength'=>200)); ?>
		<?php echo $form->error($model,'url'); ?>
	</div>
	
	<div class="row">
		<?php echo $form->labelEx($model,'title'); ?>
		<?php echo $form->textField($model,'title',array('size'=>60,'maxlength'=>200)); ?>
		<?php echo $form->error($model,'title'); ?>
	</div>
	
	<div class="row">
		<?php echo $form->labelEx($model,'meta_keyword'); ?>
		<?php echo $form->textArea($model,'meta_keyword',array('size'=>60,'maxlength'=>200)); ?>
		<?php echo $form->error($model,'meta_keyword'); ?>
	</div>
	
	<div class="row">
		<?php echo $form->labelEx($model,'meta_description'); ?>
		<?php echo $form->textArea($model,'meta_description',array('size'=>60,'maxlength'=>200)); ?>
		<?php echo $form->error($model,'meta_description'); ?>
	</div>
	
	<div class="row">
		<?php echo $form->labelEx($model,'status'); ?>
		<?php echo $form->radioButtonList($model,'status', ApplicationConfig::app()->params['scaling_params']['status'],array('separator'=>'','style'=>'float:left')); ?>
		<?php echo $form->error($model,'status'); ?>
	</div>

	</br>
	
	<div class="row form-actions">
		<?php echo CHtml::submitButton($model->isNewRecord ? 'Create' : 'Save',array('class' => 'btn btn-primary')); ?>
		<?php echo CHtml::button('Cancel', array('submit' => array('admin'),'class' => 'btn btn-primary')); ?>
		
	</div>

<?php $this->endWidget(); ?>

</div><!-- form -->